package com.atung.merchant.vo.save;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author Administrator
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SaveMenuRequest {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("分类编号")
    private Long menuTypeId;

    @ApiModelProperty("分类编号")
    @NotBlank(message = "分类不能为空")
    private String menuTypeName;
    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;
    @ApiModelProperty("头像")
    private String photo;
    @ApiModelProperty("单价")
    @NotNull(message = "单价不能为空")
    private BigDecimal price;

    @ApiModelProperty("单位")
    @NotBlank(message = "单位不能为空")
    private String unit;
}
